package com.learn.project2.controller.wx.home;

import com.learn.project2.model.vo.wx.home.HomeIndexVO2;
import com.learn.project2.service.wx.home.HomeService2;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * \* Author: Valley
 * \* Date: 2022/1/8
 * \* Time: 20:54
 * \* Description:
 */
@RestController
@RequestMapping("wx/home")
public class HomeController2 {

    @Autowired
    HomeService2 homeService2;

    /**
     * @description: 首页-商品列表
     * @param: []
     * @return: com.learn.project2.utils.Result
     * @author 王力
     * @date: 2022-01-09 14:45:06
     */
    @RequestMapping("index")
    public Result index(){
        HomeIndexVO2 homeIndexVO2 = homeService2.homeIndex();
        return Result.ok(homeIndexVO2);
    }
}
